use "maintext.dta"

* Table 1
reg discretion divided, cluster(agency_codex)
reg discretion divided i.agencyfe, cluster(agency_codex)
reg discretion divided i.agencyfe i.commfe, cluster(agency_codex)
reg discretion divided inflation unemp first_year war approval i.agencyfe i.commfe, cluster(agency_codex)
reg discretion opp_pres inflation unemp first_year war approval i.agencyfe i.commfe, cluster(agency_codex)
reg discretion preschambermeddist inflation unemp first_year war approval i.agencyfe i.commfe, cluster(agency_codex)
reg std_dis divided inflation unemp first_year war approval i.agencyfe i.commfe, cluster(agency_codex)

* Table 2
reg discretion divided selindim1 selindim1int inflation unemp first_year war i.commfe, cluster(agency_codex)
mixed discretion divided selindim1 selindim1int inflation unemp first_year war i.commfe divided_mean inflation_mean unemp_mean firstyear_mean war2_mean sinteraction_mean || agency_codex: selindim1, vce(cluster agency_codex)
reg discretion pres_chair inflation unemp first_year war approval i.agencyfe i.commfe, cluster(agency_codex)
reg discretion chair_agencycj inflation unemp first_year war approval i.agencyfe i.commfe, cluster(agency_codex)
reg discretion cfdist inflation unemp first_year war approval i.agencyfe i.commfe, cluster(agency_codex)
